using System;
using System.Collections.Generic;
using System.Configuration;
using HiSun.IDAL;
using HiSun.Model;

namespace HiSun.BLL
{
    public class Group
    {
        private static readonly IGroup dal = HiSun.DALFactory.DataAccess.CreateGroup();
        private static readonly int topNum = int.Parse(ConfigurationManager.AppSettings["TopNum"]);

        public IList<GroupInfo> GetTopGroups(GroupType groupType)
        {
            return dal.GetTopGroups(groupType, topNum);
        }
    }
}
